﻿using System;
using UnityEngine;

namespace UltimateFracturing
{
	// Token: 0x02000432 RID: 1074
	public class DieTimer : MonoBehaviour
	{
		// Token: 0x06001E45 RID: 7749 RVA: 0x000C0EC7 File Offset: 0x000BF0C7
		private void Start()
		{
			this.m_fTimer = 0f;
		}

		// Token: 0x06001E46 RID: 7750 RVA: 0x000C0ED4 File Offset: 0x000BF0D4
		private void Update()
		{
			this.m_fTimer += Time.deltaTime;
			if (this.m_fTimer > this.SecondsToDie)
			{
				UnityEngine.Object.Destroy(base.gameObject);
			}
		}

		// Token: 0x04001EB3 RID: 7859
		public float SecondsToDie = float.PositiveInfinity;

		// Token: 0x04001EB4 RID: 7860
		public float OffscreenLifeTime = float.PositiveInfinity;

		// Token: 0x04001EB5 RID: 7861
		private float m_fTimer;
	}
}
